import http from '@/utils/request'

export default {
  async login(data) {
    return await http.login("/api/user/login", data);
  },

  async getInfo() {
    return await http.get("/api/sysUser/getUserInfo")
  },

  async logout(params) {
    return await  http.post("/api/sysUser/logout",params)
  },

  async getMenuList(){
    return await http.get("/api/sysUser/getMenuList")
  },
  async getRouteList(){
    return await http.get("/api/sysUser/getRouteList")
  }
}


